package fnord.illuminati.card;

import java.io.Serializable;

public enum ActionTime implements Serializable {
	ANYTIME,DURINGTURN,AFTERACTION,BEFOREINCOME,BEFOREATTACK,DURINGATTACK,AFTERATTACK,INCOME,CURRENTATTACK,ALLATTACKS,NEVER;
	
	public boolean isActive() {
		switch (this) {
		case ANYTIME: return true;
		case DURINGTURN: return true;
		case AFTERACTION: return true;
		case BEFOREINCOME: return true;
		case BEFOREATTACK: return true;
		case DURINGATTACK: return true;
		case AFTERATTACK: return true;
		case INCOME: return false;
		case CURRENTATTACK: return false;
		case ALLATTACKS: return false;
		case NEVER: return false;
		default: return true;
		}
	}
}
